import http from "../utils/request"

//网站信息 /home/getWebInfo
const getWebInfo = (data = {}) => {
  return http.request({
    url: "/home/getWebInfo",
    method: 'get',
    data: data
  })
}

//卡片统计信息 /home/getStatistics
const getStatistics = (data = {}) => {
  return http.request({
    url: "/home/getStatistics",
    method: 'get',
    data: data
  })
}

//获取分类 /home/getSort
const getSort = (data = {}) => {
  return http.request({
    url: "/home/getSort",
    method: 'get',
    data: data
  })
}

//推荐文章列表 /home/getRecommendArticle
const getRecommendArticle = (data = {}) => {
  return http.request({
    url: "/home/getRecommendArticle",
    method: 'get',
    data: data
  })
}

//背景图列表 /home/getRandomBackgroundImage
const getRandomBackgroundImage = (data = {}) => {
  return http.request({
    url: "/home/getRandomBackgroundImage",
    method: 'get',
    data: data
  })
}

//菜单信息 /home/getMenu
const getMenu = (data = {}) => {
  return http.request({
    url: "/home/getMenu",
    method: 'get',
    data: data
  })
}

//标签 /home/getLabel
const getLabel = (data = {}) => {
  return http.request({
    url: "/home/getLabel",
    method: 'get',
    data: data
  })
}

export {
  getWebInfo,
  getStatistics,
  getSort,
  getRecommendArticle,
  getRandomBackgroundImage,
  getMenu,
  getLabel,
}
